package com.scu.bank.service;

import com.github.pagehelper.PageInfo;
import com.scu.bank.model.base.BaseService;
import com.scu.bank.model.pojo.AttachFile;
import org.springframework.web.multipart.MultipartFile;


/**
 * Created by pmeng on 2021/01/03.
 */
public interface AttachFileService extends BaseService<AttachFile> {
    PageInfo<AttachFile> list(Integer page, Integer size);

    String saveFileToDB(MultipartFile file);

    String getFileName(String fileCode);

    AttachFile getFileByCode(String fileCode);
}
